/* ==================================================================   
 * Created [2009-4-27 下午11:32:55] by Jon.King 
 * ==================================================================  
 * TSS 
 * ================================================================== 
 * mailTo:jinpujun@hotmail.com
 * Copyright (c) Jon.King, 2009-2012 
 * ================================================================== 
*/

package com.jinhe.tss.core.sso;

import java.util.Map;

/**
 * <p> AnonymousOperator.java </p>
 * <p>
 * 匿名操作用户
 * </p>
 */
public class AnonymousOperator implements IOperator {

	private static final long serialVersionUID = 5437339121904051176L;

    static final String ANONYMOUS_USER_NAME = "匿名用户";      //匿名用户名
    static final String ANONYMOUS_LOGIN_NAME = "ANONYMOUS";  //匿名用户登录名
    static final Long   ANONYMOUS_USER_ID = new Long(-10000);//匿名用户ID
    
    public static AnonymousOperator anonymous = new AnonymousOperator();
    
    private AnonymousOperator(){  }

    public Long getId() { return ANONYMOUS_USER_ID; }
    public String getLoginName() { return ANONYMOUS_LOGIN_NAME; }
    public String getUserName()  { return ANONYMOUS_USER_NAME; }
    public boolean isAnonymous() {  return true; }

    public Object getAttribute(String name) { return null; }
    public Map<String, Object> getAttributesMap() { return null; }
    public String getAuthenticateMethod() { return null; }
}
